package pattern.decorator.passport.upgrade;

import pattern.decorator.passport.old.ISignService;
import pattern.decorator.passport.old.ResultMsg;

/**
 * @author juxiaojun
 * @since 2019-05-12
 */
public class SignForThirdService implements ISignForThirdService {
    private ISignService signinService;

    public SignForThirdService(ISignService signinService) {
        this.signinService = signinService;
    }

    public ResultMsg register(String username, String password) {
        return signinService.register(username,password);
    }

    public ResultMsg login(String username, String password) {
        return signinService.login(username,password);
    }

    public ResultMsg loginForQQ(String id) {
        return null;
    }

    public ResultMsg loginForWechat(String id) {
        return null;
    }

    public ResultMsg loginForToken(String token) {
        return null;
    }

    public ResultMsg loginForTelphone(String telphone, String code) {
        return null;
    }

    public ResultMsg loginForRegist(String username, String passport) {
        return null;
    }
}
